package com.brower.project

import android.app.Application
import android.content.Context
import com.tencent.mmkv.MMKV
import kotlin.properties.Delegates

/**
 * desc   :
 * date   : 2020/08/05
 * version: 1.0
 */
open class BaseApplication : Application() {

    companion object {
        var CONTEXT: Context by Delegates.notNull()
        lateinit var baseApplication: BaseApplication

        @JvmStatic
        fun getContext(): Context {
            return CONTEXT
        }
    }

    override fun onCreate() {
        super.onCreate()
        CONTEXT = applicationContext
        baseApplication = this
        MMKV.initialize(this)
    }



}